package com.yswy.common.enums;

import java.util.HashMap;
import java.util.Map;

public class EnumHelper {

    public static Map<Integer, String> getCtx(TypeEnum[] records) {
        Map<Integer, String> kv = new HashMap<>();
        for (TypeEnum record : records)
            kv.put(record.getCode(), record.getMessage());
        return kv;
    }
}
